home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 016a / safezi72.zip / SAFEZIP.DOC < prev    next >
Text File  |  1991-12-30  |  8KB  |  145 lines

  1.  
  2.                             S A F E Z I P
  3.  
  4.                              Version 7.2
  5.  
  6.                            by Brad Carlton
  7.  
  8.  
  9.  
  10. SafeZip is the quick and easy way to make sure that all subdirectories,
  11. volume labels and read-only, hidden and system files are handled properly
  12. when using PKZIP and PKUNZIP.  I don't know how many times I have had to
  13. ask the question "Did you use PKUNZIP with the -d option?" when somebody
  14. complains about some program not working which had subdirectories.
  15. SafeZip will even allow you to zip your DOS boot disk.  Teledisk is NOT
  16. required for a DOS boot disk, PKZIP and PKUNZIP work just fine when you
  17. know what parameters to use.  SafeZip also does automatic virus scanning
  18. at your option.
  19.  
  20. Version 7.2 fixes another problem with virus scanning from SHEZ when
  21. anything less than the entire zip was extracted.  SafeZip 7.1 and earlier
  22. scanned the zip itself rather than the files extracted from it.  To fix
  23. this problem, it was necessary to enhance the way parameters are parsed
  24. by UNZ.EXE.  It is no longer necessary that the path being unzipped to
  25. be the 2nd parameter.  UNZ now allows PKUNZIP options beginning with a
  26. dash (-) to be used in front of the zipname and/or path to be unzipped
  27. to.  ZIP.EXE has also benefitted from this enhancement in version 7.2.
  28.  
  29. Version 7.1 started using the /A option when scanning for viruses.
  30. The Flip virus has been known to elude detection when /A was not used.
  31. NetScan can now be used rather than SCAN by specifying SAFEZIP=NETSCAN.
  32. Also, a virus scan is now bypassed when the -T option detected, which
  33. was annoying if UNZ was used from SHEZ, and files were tested from SHEZ.
  34.  
  35. Version 7 of SafeZip was mostly a bug fix for version 6, which added
  36. support for SHEZ, but failed to automatically recreate volume labels on
  37. diskettes when used from SHEZ.  Version 7 fixed this problem.  To fix
  38. this problem, it was necessary to make SafeZip extract volume labels
  39. whenever the current drive is a floppy, which is a damn good idea anyway.
  40. So, this fix is also an enhancement for those who don't use SHEZ.  At any
  41. rate, UNZ.EXE can now REALLY be used as a PKUNZIP front-end in SHEZ so
  42. that it is no longer necessary to exit SHEZ before running UNZ to unzip
  43. files with all the parameters required to reproduce volume labels,
  44. subdirectories and files with hidden, read-only or system attributes.
  45. Version 7 also fixes a problem when virus scanning has been enabled with
  46. the SAFEZIP=SCAN environment variable, and UNZ was being used from within
  47. SHEZ.  The virus scan did not work under these circumstances in ver. 6.
  48.  
  49. As promised, ZIP.COM has been replaced with ZIP.EXE, which is now
  50. compiled with Turbo Pascal 6.0, as UNZ.EXE is.  ZIP.EXE now also uses
  51. the SAFEFLOP environment variable, which was introduced in version 6.
  52. ZIP.EXE now automatically includes the volume label when the current
  53. drive is a floppy, which is another enhancement over version 6.
  54.  
  55. ZIP.EXE is used to call PKZIP with all the magic parameters necessary to
  56. create zips which preserve all the attributes of things such as DOS boot
  57. disks.  UNZ.EXE calls PKUNZIP to reproduce the files zipped with ZIP.EXE.
  58.  
  59.  
  60. Command format:  ZIP  [-opts]  zipname[.ZIP]  [d[:]][\subdir]  [filenames]
  61.  
  62. Please note that only the drive letter being zipped from needs to be
  63. specified.  The colon (:) is optional, so either "A" or "A:" will work.
  64. ZIP.EXE also assumes that ALL files will be added to the zip, so it is
  65. not necessary to specify "A:*.*".  Simply "A" will do.  ZIP.EXE adds this
  66. wildcard filespec (*.*) to any filespec in the second parameter which is
  67. a single drive letter, a drive letter and a colon and any filespec ending
  68. with a backslash (\).  The *.* is necessary to ensure that PKZIP includes
  69. all subdirectories.
  70.  
  71. Volume labels are only included when zipping from a floppy disk.
  72. ZIP.EXE only knows that you are zipping from a floppy if the filespec,
  73. usually the second parameter, begins with a floppy drive letter or the
  74. current drive is a floppy.  Only drives A and B are recognized as being
  75. floppies by default, but an environment variable can be set to override
  76. this.  IBM machines sometimes have a floppy drive D, so ZIP.EXE handles
  77. this by looking for the SAFEFLOP environment variable.  If A and D are
  78. your floppy drives, then add the following command to AUTOEXEC.BAT:
  79.  
  80.    SET SAFEFLOP=AD
  81.  
  82. The parameters used are mostly the same as if you were using PKZIP and
  83. PKUNZIP directly.  SafeZip just adds the parameters that are too easily
  84. forgotten but required to practice safe zipping.  If the drive and
  85. subdirectory are omitted, it defaults to the current directory.  The
  86. "filenames" parameter is an optional list of files to be included.
  87.  
  88.  
  89. Command format:  UNZ  [-opts]  zipname[.ZIP]  [d[:]][\subdir]  [filenames]
  90.  
  91. Again, the drive letter being unzipped to can be specified without the
  92. colon (:) for compatibility with previous versions of SafeZip.  UNZ.EXE
  93. is merely a front-end to PKUNZIP.EXE, and will pass all parameters to
  94. PKUNZIP that were specified on the command line with the exception of
  95. appending a colon to the drive letter being unzipped to, usually the
  96. second parameter, if it is a single letter and thus a valid drive
  97. specification.  The "magic" that UNZ does if the drive being unzipped to
  98. is determined to be a FLOPPY drive, is add the -$ option to the PKUNZIP
  99. command line to ensure that any volume labels, if present, are recreated
  100. on the floppy disk.  Version 7 has added an exception to this rule,
  101. however.  Now, if the current drive is a floppy drive, the volume label
  102. WILL be extracted even if the drive letter was not found in the second
  103. parameter.  As mentioned above in reference to ZIP.EXE, UNZ also assumes
  104. that only drives A and B are floppies, but UNZ also reads the SAFEFLOP
  105. environment to override this.
  106.  
  107. The -$ option is not the only thing UNZ automatically adds to the PKUNZIP
  108. command line.  The -D and -JHSR options are also added to ensure that
  109. subdirectories and files with hidden, system and read-only attributes are
  110. recreated properly.  These options are used on both hard and floppy
  111. drives, unless it is determined that UNZ is being used to unzip temporary
  112. files from within SHEZ.  In this case, the command line is passed to
  113. PKUNZIP without the -$, -D or -JHSR options.  These options ARE used from
  114. within SHEZ when appropriate for files being unzipped normally.  This
  115. support for SHEZ was the main reason UNZ was rewritten in Pascal for
  116. version 6.  To use UNZ from SHEZ, just configure SHEZ to call UNZ.EXE
  117. rather than PKUNZIP.EXE.
  118.  
  119. UNZ also does automatic virus scanning with McAfee's SCAN.EXE.  This
  120. option is enabled by setting SAFEZIP=SCAN in AUTOEXEC.BAT.  Again, UNZ
  121. requires that the location of the unzipped files be specified as the
  122. second parameter so that it can pass this information to SCAN.  However,
  123. if ONLY the zipname is specified, so that the files are unzipped to the
  124. current directory, UNZ will tell SCAN to search the current directory by
  125. using *.* as the filespec.  In SafeZip version 7, UNZ now also recognizes
  126. that it is running from SHEZ, and also uses the *.* filespec in this
  127. case.  UNZ uses the SCAN /SUB option to search subdirectories of the
  128. directory unzipped into for viruses, so this will, of course, result in
  129. your whole drive being scanned if you unzip into the root directory.
  130. SCANV80 or above is required if SAFEZIP=SCAN is set because the /SUB
  131. option was added in v80.
  132.  
  133. Starting with version 7.1, the SAFEZIP environment variable can be set
  134. to SCAN, NETSCAN, or to whatever your copy of SCAN is named.  It is not
  135. yet possible to customize the parameters passed to SCAN without editing
  136. UNZ.EXE with a sector editor such as Norton DiskEdit, but hopefully
  137. SafeZip version 8 will have this capability.
  138.  
  139. Well, thats about it.  SafeZip is a free utility, and the latest version
  140. is always a free download on Mother Lode.  If you don't have an account
  141. on Mother Lode, you should!  If you would like the number and NUP for
  142. Mother Lode, please leave a message to Brad Carlton on SpamLand, The
  143. Realm of Immortality, 10 Downing, Wastelands III or Paradise Springs.
  144.  
  145.